﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
  public class Region
  {
    public int RegionId { get; set; }
    public string Name { get; set; }
    public DateTime DateJoined { get; set; }
    //Foreign Keys
    [Column("Parent")]
    public int? ParentId { get; set; }

    //Relation to other Classes
    [ForeignKey("ParentId")]
    public virtual Region Parent { get; set; }
    public virtual List<Region> Children { get; set; }
  }
}
